package com.online_exam.viewmodel.admin.question;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import java.util.List;
@Data
@ToString
public class QuestionEditVM {

    private Integer id;

    private Integer questionType;

    private Integer subjectId;

    private Integer score;

    private Integer gradeLevel;
    @Range(min = 1 , max = 5, message = "选择题目难度")
    private Integer difficult;

    private String correct;

    private List<String> correctArray;

    private List<QuestionItemVM> items;

    private String analyze;

    private String title;

    private Integer itemOrder;
    /*public void setCorrectArray(List<String> correctArray) {
        if (correctArray.size()>0)
            this.correct = correctArray.toString();
    }*/


}
